import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ShopVO } from "@/api/retail/shop/types";
import {ProfitRatioVO} from "@/api/retail/profitRatio/types";

/**
 * 店铺信息
 */
export const getInfo = (): AxiosPromise<ShopVO> => {
  return request({
    url: '/shop/info',
    method: 'get'
  });
};
/**
 * 店铺收益配置
 * @param id
 */
export const getProfitConfig = (id?: string | number): AxiosPromise<ProfitRatioVO[]> => {
  return request({
    url: '/shop/info/profitRatio/' + id,
    method: 'get'
  });
}
